package com.eastfair.venueservice.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.ServiceCategoryDTO;
import com.eastfair.venueservice.dto.ServiceSpecsDTO;
import com.eastfair.venueservice.entity.ServiceSpecs;
import com.eastfair.venueservice.vo.ServiceSpecsVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 服务规格
 * </p>
 *
 * @author lyw
 * @date 2022-07-13
 */
public interface ServiceSpecsService extends SuperService<ServiceSpecs> {

    /**
     * 保存服务规格
     * @param serviceSpecsDTO
     * @return
     */
    Boolean saveServiceSpecsInfo(ServiceSpecsDTO serviceSpecsDTO);

    /**
     * 根据服务分类id查询规格
     * @param categoryId
     * @return
     */
    List<ServiceSpecsVO> getServiceSpecsListByCategoryId(Long categoryId);

    /**
     * 删除规格
     * @param id
     * @return
     */
    Boolean delServiceSpecsById(Long id);

    /**
     * 根据服务分类id查询规格列表
     * @param ids ids
     * @return List<ServiceSpecsVO>
     */
    List<ServiceSpecsVO> getServiceSpecsByIds(List<Long> ids);

    /**
     * 批量保存服务规格
     * @param serviceSpecsDTOS serviceSpecsDTOS
     * @return Boolean
     */
    Boolean saveServiceSpecsInfoBatch(ServiceCategoryDTO serviceSpecsDTOS);
}
